package com.ssy.lingxi.platform.manage.controller.feign;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.model.dto.shop.ShopMemberInfoDTO;
import com.ssy.lingxi.platform.manage.service.IShopActivityService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * @author lqa
 * @version 2.0.0
 * @date 2022/2/18
 */
@RestController
@RequestMapping("/manage/activity/shop/rule/feign")
public class ShopRuleActivityFeignController {

    @Resource
    private IShopActivityService shopActivityService;

    /**
     * 判断用户是否有自营商城
     */
    @RequestMapping(value = "/existShop", method = RequestMethod.POST)
    public Wrapper<Boolean> existShop(@RequestBody @Valid ShopMemberInfoDTO dto) {
        return shopActivityService.existShop(dto);
    }
}
